﻿package {	import flash.display.MovieClip;	import flash.events.Event;	import flash.events.MouseEvent;	import md.grossu.maxim.sm.lab2.StartSceen;	import md.grossu.maxim.sm.lab2.GameSceen;		import md.grossu.maxim.sm.lab2.Cell;	public class Lab2 extends MovieClip {		private var screen:MovieClip;		public function Lab2() {			screen = new StartScreen();			addChild(screen);			StartScreen(screen).playButton.addEventListener( MouseEvent.CLICK, playGame, false, 0, true );		}		public function playGame( ev:MouseEvent ):void {			trace("jocul a început");			removeChild(screen);			screen = new GameScreen();			addChild(screen);		}	}}